<?php

function select_slide_model($bdd) {

    $results = $bdd->query('SELECT * FROM `slide`
            ');

    return $results;
}

function select_targetworks_slide($bdd, $name_slide) {
    ;
    $req = $bdd->query('SELECT * FROM works WHERE work_name = "' . $name_slide . '"
');
    return $req;
}

function select_targetnews_slide($bdd, $name_slide) {
    $results = $bdd->query('SELECT * FROM news
           WHERE new_name = "' . $name_slide . '" ');

    return $results;
}

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
?>
